﻿@model IEnumerable<MStack.Infrastructure.Entities.User>
@if (Model == null)
{
    return;
}
<h2>最新活跃用户</h2>
<table class="table">
    @*<tr>
            <th>
                @Html.DisplayNameFor(model => model.UserName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Email)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DisplayName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PasswordHash)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SecurityStamp)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LoginFailTimes)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.EmailConfirmed)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Avatar)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Company)
            </th>
        </tr>*@

    @foreach (var item in Model)
    {
        <tr>
            <td>
                <img src="@Url.Content(string.IsNullOrWhiteSpace(item.Avatar) ? "~/Images/logo/32x32.png" : item.Avatar)" width="32" height="32" />
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.UserName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Email)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DisplayName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Company)
            </td>
        </tr>
    }

</table>
